﻿using Codeflows;
using Codeflows.Tracking;
using CodeflowsTests.Mocks;

namespace CodeflowsTests
{
    public static class Tracker
    {
        public readonly static ICodeflowTrackerFactory InMemory = new InMemoryCodeFlowTrackerFactory();

        private class InMemoryCodeFlowTrackerFactory : ICodeflowTrackerFactory
        {
            private static InMemoryTracker _tracker = new InMemoryTracker();

            public DisposableContext<ICodeflowTracker> CreateTracker()
            {
                return new DisposableContext<ICodeflowTracker>(_tracker);
            }
        }
    }
}